package com.fc.remoting.message;

public class Commond {
	public int module;
	public int order;
	
	private static final int _MODULE_ =  69;
	private static final int _ORDER_ = 19;
	
	private Commond(){}
	
	public static Commond valueOf(int module,int order){
		Commond commond = new Commond();
		commond.module = module;
		commond.order = order;
		return commond;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(this.hashCode() == obj.hashCode()){
			return true;
		}
		return super.equals(obj);
	}

	@Override
	public int hashCode() {
		return module * _MODULE_ + order * _ORDER_;
	}

	@Override
	public String toString() {
		return "module:" + module + ",order:" + order;
	}
}
